package com.yun.zf.admin.controller;

import com.yun.zf.system.security.service.TokenService;
import com.yun.zf.system.service.ISysRoleService;
import com.yun.zf.system.service.ISysUserService;
import com.yun.zf.common.admin.domain.SysUser;
import com.yun.zf.common.utils.ExcelUtil;
import com.yun.zf.common.vo.Response;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 用户信息
 * 
 * @author ruoyi
 */
@RestController
@RequestMapping("/system/user")
@Api(value = "",tags = "用户信息管理设置")
public class SysUserController extends BaseController
{
    @Autowired
    private ISysUserService userService;

    @Autowired
    private ISysRoleService roleService;

  /*  @Autowired
    private ISysPostService postService;
*/
    @Autowired
    private TokenService tokenService;




    @GetMapping("/importTemplate")
    public Response importTemplate()
    {
        ExcelUtil<SysUser> util = new ExcelUtil<SysUser>(SysUser.class);
        return util.importTemplateExcel("用户数据");
    }





}